package org.tea.mapper.common;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.SelectProvider;
import org.tea.mapper.util.BaseSelectMapperProvider;

import java.util.List;

/**
 *@author lxh
 */
@Mapper
public interface BaseSelectMapper<T> {

    @SelectProvider(type = BaseSelectMapperProvider.class, method = "selectByPrimaryKey")
    T selectByPrimaryKey(Object primaryKey);

    @SelectProvider(type = BaseSelectMapperProvider.class, method = "selectByCondition")
    List<T> selectByCondition(@Param("param") T condition);
}
